import React, { Component } from 'react';
var PixelRatio = require('PixelRatio');
var Platform = require('Platform');

import {
    LayoutAnimation,
  	Dimensions,
 } from 'react-native';




var width = require('Dimensions').get('window').width

var statusBarHeight=Platform.OS === 'android'?20:20;
var barTop = Platform.OS === 'android'?as(54):64;
var navBarHeight = Platform.OS === 'android'?barTop:(barTop-statusBarHeight);


var height = Platform.OS === 'android'? require('Dimensions').get('window').height-statusBarHeight: require('Dimensions').get('window').height;

var size = {
	width: width,
	height: height,
	/*StateBar 高度*/
	statusBarHeight:statusBarHeight,
	/*StateBar+NavBar 高度*/
	barTop:barTop,
  	navBarHeight:navBarHeight,
};


module.exports = {
    size:size,
    dcbaseUrl:'https://leancloud.cn:443/1.1/',
    headers:{
        'X-Avoscloud-Application-Id': 'hgFqyhEMtqCSV7kSHyN7bRk6-gzGzoHsz',
        'X-Avoscloud-Application-Key':'b1VcwThPIKu9MjJmjMrpWsaA',        
    },
    headersStore:{
        'X-Avoscloud-Application-Id': 'hgFqyhEMtqCSV7kSHyN7bRk6-gzGzoHsz',
        'X-Avoscloud-Application-Key':'b1VcwThPIKu9MjJmjMrpWsaA',
        'Content-Type': 'application/json',
    },
};
